package test.com.linkgie.galaxyframework.binaryserialize;

import com.linkgie.galaxyframework.binaryserialize.BinaryField;
import com.linkgie.galaxyframework.binaryserialize.BinaryType;
import com.linkgie.galaxyframework.binaryserialize.PrimitiveType;

/**
 * 循环引用的类型；
 * 
 * @author huanghaiquan
 *
 */
@BinaryType(code = CycleRefData.BYTES_VALUE)
public interface CycleRefData {
	
	public static final int BYTES_VALUE = 110217;

	/**
	 * 文本值的二进制序列；
	 * 
	 * @return
	 */
	@BinaryField(index = 1, primitiveType = PrimitiveType.INT32)
	int getValue();
	
	@BinaryField(index = 2, isObject = true)
	CycleRefData getParent();
}
